#include "MeshBuffer.h"

namespace steam
{
	namespace coal
	{
		MeshBuffer::MeshBuffer()
		{

		}

		MeshBuffer::~MeshBuffer()
		{

		}

		unsigned int MeshBuffer::getFaceCount() const
		{
			return m_faces.size();
		}

		ConstFaceIterator MeshBuffer::getFaceStartIter() const
		{
			return m_faces.begin();
		}

		ConstFaceIterator MeshBuffer::getFaceEndIter() const
		{
			return m_faces.end();
		}

		std::string MeshBuffer::getMeshBufferName() const
		{
			return m_name;
		}

		void MeshBuffer::setMeshBufferName(std::string& name)
		{
			m_name = name;
		}

		void MeshBuffer::setMaterialName(std::string& materialName)
		{
			m_materialName = materialName;
		}

		std::string MeshBuffer::getMaterialName() const
		{
			return m_materialName;
		}

		void MeshBuffer::addFace(IFace* face)
		{
			m_faces.push_back(face);
		}
	}

}
